Extracting Computer names and User names

I need to extract user name and computer names form computer on a LAN.

Can somebody please give me a few tips.

Thanks in advance

CJ