I am hoping you are not doing this on a win32 box, if this is unix try just parsing the output of 'df -k' accordingly. In windows, just use DIR and use a sweet little regex to help yah out, should be easy enuff.
Tradez "Never underestimate the predicability of stupidity"
- Bullet Tooth Tony, Snatch (2001)