import shutil
path = r'C:'
gb = 1024 ** 3 #GB == gigabyte
total, used, free = shutil.disk_usage(path)
total = total // gb
used = used // gb
free = free // gb
print("Total: %d GB" % total )
print("Used: %d GB" % used )
print("Free: %d GB" % free)
import shutil
path = r'C:'
gb = 1024 ** 3 #GB == gigabyte
total, used, free = shutil.disk_usage(path)
total = total // gb
used = used // gb
free = free // gb
print("Total: %d GB" % total )
print("Used: %d GB" % used )
print("Free: %d GB" % free)