How do USB hubs work when same device is connected
You can distinguish them by the port they are connected to, otherwise they will appear identical.  The way we distinguish between two devices is with a serial number in the embedded software, if the embedded software has no distinguishing fields you can read, then you can only distinguish them by port. 

Reading the port is dependent on the software of the operating system you are using.