You don't require any serial number. You require an Apple ID (an email address) and a password that you use with your Apple ID.
The only other thing the computer will ask for is your Admin account username and the password you setup for it. This is the login account on the computer.
If you need the actual serial number of your computer, then click on the Apple menu and select About This Mac. The serial number is usually at the bottom. Copy it because you need to use it exactly as it appears.
To upgrade to Sierra:
Your iMac must be a Late-2009 or later model.
You must have Lion or later thru El Capitan already installed.
A minimum of 2GBs of RAM (in reality you should have a minimum of 4GBs of RAM.
At least 20GBs of free space on the disk drive.
If you have Snow Leopard 10.6.x installed, then you must be sure it's upgraded to 10.6.8 or Lion 10.7.5 in order to run Sierra.
If you cannot meet the above then El Capitan may be as far as you can go or Lion may be the limit.
Lion System Requirements
1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
or Xeon processor
2. 2GB of memory
3. OS X v10.6.6 or later (v10.6.8 recommended)
4. 7GB of available space
5. Some features require an Apple ID; terms apply.
Are my applications compatible? See App Compatibility Table - RoaringApps.