Tell me, is it possible to make such an application and place it on an external disk that automatically started when this external disk was connected?
The program itself will from time to time to calculate the disk space and send it to the server.
Also, when disconnecting the railway (as safe and pulling out), no errors should arise.