How to detect current function set?

I have S2C modules. Is there any AT command or another way to get the current function set?
I need this in order to be able to select the right commands to use when sending data (whether to use those for 802.15.4 or the ones for Zigbee)