Look on the back of the manual that came in the box with the game — the serial number is printed there.
If the manual is long gone, a retail purchase can sometimes be recovered through the store's records or, for digital copies, from the account library you bought it through.