Can't you do...

$MEM=Shell "command.com /C MEM"

and then you should be able to find the total disk space from the registry....I ahve not had time to look, but it should be in there.