Could be an API function. I'm not sure what you mean, but you can get API to tell you what kind of drive it is (i.e "C:\" returns "FIXED" etc..)

http://www.vbapi.com/