PHP is a server-side language. You are not able to detect computer specs. However, you can use JavaScript to detect some basic screen related things like resolution, pixel depth, colors etc.
PHP is able to detect network information and some settings.