.NET Framework List available port names


Example

string[] portNames = SerialPort.GetPortNames();