It is possible to assume how old a Nintendo Switch is by its serial number.
This website allows you to determine if your Switch can run third party applications (a.k.a. Homebrew) by inserting the first 10 characters of your serial number (prefix included).
The full serial number of your console is not collected by this website!
If you've found this website useful, consider making a small donation so that I am covered with hosting/domain expenses.
All the serial numbers data used in this website is publicly available on the GBATemp forum.