What type of Core 2 Quad can I put in a Lenovo Thinkcentre M58 SFF PC?

I have a Lenovo Thinkcentre M58 small form factor PC. It currently has only a Core 2 Duo E8400. I've seen some, however, that have Core 2 Quads. The BIOS is very strict, so I don't know what specific Core 2 Quad I can put in it. Does anyone else know?

Should be able to use any Intel socket 775 CPU
These CPUs are obsolete though, you would need to buy them online.

Intel Core 2 Quad Q8200 is shown on some units sold factory installed and Q6600
Some M58p models with graphics card sold with M58p - SFF - Core 2 Quad Q9550, Core 2 Quad Q9400
Bios should be updated to the latest level. There were USFF, SFF, and Towers and possibly a Desktop model.
If you provided the specific model number it might help.
M58p on ebay shows with a Q9650 installed

Intel Core i3-8100 @ 3.60GHz score 8033 as a new desktop pc, and laptops typically over 5000 score

Core2 Duo E8400 @ 3.00GHz 2149 65 Watt, 100.3 Watt maximum power
Core2 Quad Q6600 @ 2.40GHz 2948
Core2 Quad Q8200 @ 2.33GHz 2811
Core2 Quad Q9400 @ 2.66GHz 3340
Core2 Quad Q9500 @ 2.83GHz 3521
Core2 Quad Q9550 @ 2.83GHz 3963
Core2 Quad Q9650 @ 3.00GHz 4160 95W design, 132.48 Watt maximum power