Depending on the processor, a 2010 still has some life in it...
First memory. Most 2010 iMacs shipped with two 2 gigabyte memory chips.
Also, Core I3 processor machines have a maximum memory of 16 gigabytes,
the Core I5 and I7 have 32 gigabytes maximum...
Adding 16 gigabytes gives you 20, iTunes import was much faster with 20 on my 2011...
https://eshop.macsales.com/shop/memory/iMac/2010/DDR3_21.5_27
Second, hard drive.
The 2010's have a Sata II(2) hard drive, 3 gigabytes a second,
but a SATA III(3) interface, 6 gigabytes a second...
I get my hard drives from NewEgg
https://www.newegg.com/black-wd4005fzbx-4tb/p/234-000G-000W6
SSD
https://www.newegg.com/samsung-860-evo-series-1tb/p/N82E16820147673
Get a 2.5 to 3.5 converter, it makes life so much easier...
https://eshop.macsales.com/item/NewerTech/ADPTADRV/
You will need a new temperature sensor, the old drive has one built in, the new one does not.
https://eshop.macsales.com/item/OWC/DIDIMACHDD09/
Last, but this is VERY VERY VERY hard, a processor swap. If you have a I3 processor, putting a i5 750S, 860S, or 870S is possible, but you need to have an expert do this... You go from two cores to four, and 16 gigs max to 32...