You can use WMI Calls to access info about the hard disks.
//Requires using System.Management; & System.Management.dll Reference
ManagementObject disk = new ManagementObject("win32_logicaldisk.deviceid="c:"");
disk.Get();
Console.WriteLine("Logical Disk Size = " + disk["Size"] + " bytes");
Console.WriteLine("Logical Disk FreeSpace = " + disk["FreeSpace"] + "bytes");
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…