using Linq..
using System.Net.NetworkInformation;
..
NetworkInterface nic =
NetworkInterface.GetAllNetworkInterfaces()
.Where(n => n.OperationalStatus == OperationalStatus.Up).FirstOrDefault();
if (nic != null)
return nic.GetPhysicalAddress().ToString();