edit: ip için $_SERVER['REMOTE_ADDR'] kullanırsınız.

domain ortamında dediğinize göre sunucunuz da windows o halde;
$pc_adi = gethostbyaddr('192.168.1.2');
bu size pc adını verecektir. DOMAIN/PcAdi gibi de verebilir siz test eder ona göre kullanırsınız. bulamadığı Ip yine Ip olarak döner.

ya da
$cikti = exec('ping -a 192.168.1.2');
yaparsanız cıktı siz e aşağıdaki gibi bişey verir bunu ayrıştırıp pc adını bulaiblirsiniz.

Alıntı
Pinging NOKTACOM/D3LLyPc [192.168.1.2] with 32 bytes of data
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
bunlar istediğiniz sonucu vermezse bunu deneyin
 $cikti = exec('nbtstat -a 192.168.1.2');
aşağıdaki gibi bir çıktı verir.
Alıntı
Node IpAddress: [192.168.56.1] Scope Id: []

Host not found.

Local Area Connection:
Node IpAddress: [192.168.1.2] Scope Id: []

NetBIOS Remote Machine Name Table

Name Type Status
---------------------------------------------
D3LLYPC <00> UNIQUE Registered
NOKTACOM <00> GROUP Registered
D3LLYPC <20> UNIQUE Registered

MAC Address = 00-1D-7D-5F-BA-79