Based on that partial model ID ("iMac10"), it appears that you have a Late 2009 iMac – either the 21.5" model, or the Core i5 variant of the 27" model. Those used DDR3 RAM.
You can't use that RAM to upgrade any Apple Silicon Mac. All of them use newer types of RAM – and none of them (with the possible exception of the Mac Pro tower) support RAM expansion of any type.
You might be able to give the RAM to someone else with an old Mac or PC that needs that specific type of RAM, but the RAM won't be worth much. Or you could pull it and use it as an interesting-looking paperweight …