Yes, I know how to find these. I wanted to know if PHP could do this, and how.
You can use a free monitoring script called Munin which can also be installed from your hosting control panel or directly on a server.
This will allow you to see all specs of your server, disk space, bandwidth, memory, and more...