You can use Tprocess to find the ip, host name, currently logged in user etc
and its cross platform dependant
just pass ipconfig /all to a process and redirect output to your application, parse the information back
into your app
Look up my past post it goes into more details.