Download the source code
The API GetAdaptersInfo or GetAdaptersAddresses can be used to get Network Adapter information. We can retrieve information like Adapter Name, Description, IP Address, Mask, DNS, etc… Here is a sample application that use GetAdapterInfo API to retrieve network information. The application screen looks like this:

The application retrieves this information and displays it in an owner draw list box.