echo $_ENV['COMPUTERNAME'];
Non mi è chiaro come si fa ad usare il codice che mi hai postato?