I have a device that is connected to the computer and I need to check which devices are connected and information about the device, then get the name of the port and start a communication. How can I do this in Python? Or at least check which ports are connected?