You can use the comport property of MSCOMM32.OCX (comm control) to check for a valid comport.
"Anyone who has never made a mistake has never tried anything new." A.E
"The important thing is not to stop questioning. Curiosity has its own reason for existing." A.E