The OSX command line tool "ioreg" can give you the information you need.
man ioreg
ioreg displays a registry of I / O systems. It shows the hierarchical registry as an inverted tree.
Also, if you can / want to use Cocoa, check out IOKit . IOKit is an OSX platform that supports USB equipment.
hacintosh
source share