Can I upgrade my MacBook Pro Mid 2010 to 8 or 16 GB RAM?
You probably mean upgrading the RAM to 8 GB or 16 GB.

According to the following Apple support website, your MacBook Pro has a maximum RAM capacity of 8 GB:
https://support.apple.com/en-us/HT201165

You would need to get two 4 GB modules with the correct specifications (PC3-8500 DDR3 1066 MHz type RAM) and replace them according to the steps described by Apple for your specific device.