In Javascript, Drive object returned by the GetDrive method of FileSystemObject provides the access to FreeSpace property.
In Javascript, Drive object returned by the GetDrive method of FileSystemObject provides the access to AvailableSpace property.