Hi Take the "Visa Resource Name" Control. On the front panel -> all controls -> I/O -> Visa Resourse Name.
You will have a pull down menu which lists all available COM (and LPT ports). These are derived from the settings in the Measurements and Automation Explorer. I hope this helps, Michiel.