I heard of this easier way than pulling the radio to get the serial number on the 7th gens but not so sure about it.
If you Press "SCAN" and "SOUND" button and the same time when the radio is asking for code, it tells you the serial number on the screen. I will check it if it works and let everyone know.