The getFreeSpaceKb(String path) method call of the FileSystemUtils class can help you to calculate the free space of a drive or volume in kilo bytes.
Beside using commons io solution, you can use the File.getFreeSpace() method call provided in the Java 1.6 API. You can find an example of it in the following link: How do I get total space and free space of my disk?.