Find out the model of your motherboard.
Type the model series on Google and go to Motherboard's manufacturer official website.
Find the QVL list for the motherboard.
Look inside the QVL list, it will show you all the CPUs it supports (if yours isn't listed, then it will not support it). You will see until which generation it will support.