To know the generation of a computer or laptop first of all you need to check the specification of your computer. There are different methods to check this in Windows, Mac and Linux. In specification find out the CPU number. Usually first 1 or 2 digit give you the generation number. Refer the method mentioned in this post for more details.