As far as I know there is no API to get it. But there are other ways.
you can check this on your DHCP server.
if you know the IP address (shown in debugging mode) you can ping the IP address with your computer and then use the command arp -a this shows the Mac addresses known to your computer. So you must first ping it to make sure it will lookup the macaddress for you.Reply