Getting Machine Names or IP addresses for entire network

I would like to retrieve all network Names and/or IP addresses for the
entire network.  Does anyone have an idea or sample source that would direct
me on the right path?  Any assistance would be appreciated.

Regards

Steve