How to get and map serial COM ports?

How to get and map serial COM ports? I plug in an usb device and I want to identify it’s COM port in game.

Please? Someone out there with an answer?