I have an old XenServer still alive at a client and I needed to get its service tag. Using this command via the XenServer console, you can get it!

dmidecode -s system-serial-number

Hit enter and you’ll have it!