There is no command that will retrieve switch serial number via in-band links (from an unmanaged switch).
If it was a managed switch (which would have CLI access), the "show inventory" command would show the serial number.
The serial number is on a sticker on the outside of the switch chassis, or on a pull tab on the face of the switch.