情報ありがとうございます。 GetSerialPortNames()を調べてみます。