Make a list of all the information that you want to find out, You will need to write a small batch file to export everything to .txt file. FOllowing are some commands that will give you informations like server name, Domain name,IP address, DNs, DHCP etc...
net config workstation
net config server
ipconfig /all
Use find command in conjunction with the above to find specific information
e.g
net config workstation | find /i "domain"
Workstation domain UKTC
Workstation Domain DNS Name (null)
Logon domain EU
To get it into text file, do
net config workstation | find /i "domain" > c:\temp\temp.txt