Programmatically getting MAC address of remote machines

Hi,

I want to know how to programmatically get the MAC address of remote machines.
Commands like ‘nbtstat’ and ‘arp’ are able to get this information. Thanks in advance for your help.

Regards
Sathya.