How to get Serial ID in Arduplane

Hello,
Is there any command to get only the serial ID of the arduplane /autopilot/ or pixhawk/ ?
If yes, what is the command.
Basically I want to create a sign-in process which would check whether the user input key matches the one saved.

THANK YOU,
Sripad