In java, you can use File.listRoots() to get all drives in the system.
File.listRoots()
I\'m looking to get only the external drives, i.e. USB drives, external hard disk
You could use WMI or look into
GetRawInputDeviceList() GetRawInputDeviceInfo()
GetRawInputDeviceList()
GetRawInputDeviceInfo()
This should get you started
C++
http://cboard.cprogramming.com/windows-programming/114294-getting-list-usb-devices-listed-system.html
Java
http:// forums.java.net/jive/thread.jspa?threadID=37942