Using your remote, navigate to the or All Settings menu. Scroll down to Support . Select About This TV (or "Contact Samsung" on some models).

Here is a sample Python code snippet to generate and validate a serial number: