That would be NIC-specific. If there is an existing Linux driver for the NIC, you should be able to determine how to access the MAC ROM (assumig its done that way, and it usually is) from the driver code. There is a socket ioctl to acquire the MAC of an ethernet interface. The ifconfig
source code has an example.