If the server is running Linux you can read the special files on the /proc filesystem. /proc/cpuinfo, /proc/meminfo, and so on.
This kind of thing is very platform-specific and outside of PHP's usual domain, so there aren't any built-in functions to do it. /proc on Linux just happens to be easily accessible.