I think this is what you want
http://www.codeproject.com/cs/internet/ipnumbers.asp
and
http://www.codeproject.com/cs/internet/peerlister.asp
core code
Shell32.Shell sh = new Shell32.Shell();
Shell32.Folder currFolder =
sh.NameSpace(Shell32.ShellSpecialFolderConstants.ssfNETWORK);
int num =
sh.NameSpace(Shell32.ShellSpecialFolderConstants.ssfNETWORK).Items().Count;
MessageBox.Show("The Num of Items in special folder in the local",
currFolder.Items().Count.ToString());
for(int i=0;i<num;i++)
{
if(currFolder.Items().Item(i).IsFileSystem==false)
{
if(currFolder.Items().Item(i).Type.ToString()=="")
{
MessageBox.Show(currFolder.Items().Item(i).Name);
int no =sh.NameSpace(currFolder.Items().Item(i)).Items().Count;
currFolder = sh.NameSpace(currFolder.Items().Item(i));
MessageBox.Show(no.ToString());