I've written a program that reads data from the RS-232 port on an instrument via a USB - RS-232 adapter. At the moment I have a prompt for the user to input the COM port that the adapter is using. Is there a (simple) way to detect what COM ports are in use so that I can put them in a pull down menu for the user to pick?