Code snippet to get disk usage of device