`serial.tools.list_ports` provides a mechanism for enumerating the COM ports. This would make a handy way to select which device the board is in the UI.