How to enumerate USB Mass Storage devices?

Hi all,
I want to write a program in C that can enumerate all USB massand their mount point storage on my system. i want to give ability to copy one file to desired USB mass storage or read a file from it. I have posted another question about how can recieve USB arrival in this forum.
I think that this will possible with navigating into /proc/partitions and /proc/mounts is there any other way?
(I am working on Fedorad core 8 (kernel 2.6))
thanks a lot
Topic archived. No new replies allowed.