How do i get the unique information about the external USB devices in Embedded Linux?

HI All,

I need to check the connected USB device is as same as the previously connected or not.
Hence i need to get the unique information about the Connected devices in my program(C langauge)
How do i do?
Please help me in this regard.