How to get MAC ID from Xbee?

I am using XCTU for configuration the xbee, but this is like a manually process. i want to fetch the MAC ID of xbee using microcontroller. How to do this?