Total drive, or disk, size of a machine

Is there a way in xojo to connect to an external machine, like say a desktop computer, and determine its total drive, or disk, size?

An example would be I am running the software on Computer1 and I connect to Computer2 and want to see what Computer2’s C-drive size is.

Or say that I know that Computer2’s C-Drive’s total size is 180gb and I want to see how much space is used of that 180gb, not what is available but what is used.

You could connect via ssh and run a few command line tools to list disks.

Or write your own tool to run on other computer.