"ports.exe" is a small console utility that lists the available serial ports on the system along with their COM numbers and status.
$ports -v Name Manufacturer Status ---- ------------ ------ USB Serial Port (COM3) FTDI OK
ports.exe
ports-src.zip