USB barcode scanners

I have an Android terminal with 4 USB ports. I will connect 4 barcode scanners on each of them. I need to collect the data from all 4 barcode scanners and need to know which data come from which scanner.

Do you have any sample on USB plugin?