According to HP, that mobo will support Core 2 Quad processors i.e.q6600, q9xxx, but they are now several generations and probably need to be purchased used, like on ebay.
Chipset Intel Q33 Express chipset X X
QuickSpecs HP Compaq dc5800 Business PC
Standard Features and Configurable Components
DA - 12863 Canada — Version 27 — October 28, 2009 Page 7
Processor and Speed*
One of the following
Intel Celeron Processors:
Intel Celeron 430 Processor (1.8-GHz, 512K L2 cache, 800-MHz FSB) X X
Intel Celeron 450 Processor (2.2-GHz, 512K L2 cache, 800-MHz FSB) X X
Intel Celeron Dual-Core Processors
Intel Celeron E1200 Processor (1.6-GHz, 512K L2 cache, 800-MHz FSB) X X
Intel Celeron E1400 Processor (2.0-GHz, 512K L2 cache, 800-MHz FSB) X X
Intel Celeron E1500 Processor (2.2-GHz, 512K L2 cache, 800-MHz FSB) X X
Intel Pentium Dual-Core Processors:
Intel Pentium E2180 Processor (2.0-GHz, 1-MB L2 cache, 800-MHz FSB) X X
Intel Pentium E2200 Processor (2.2-GHz, 1-MB L2 cache, 800-MHz FSB) X X
Intel Pentium E2220 Processor (2.4-GHz, 1-MB L2 cache, 800-MHz FSB) X X
Intel Pentium dual-core E5300 Processor (2.6-GHz, 2MB L2 cache, 800-MHz FSB) X X
Intel Pentium Dual Core E5400 Processor (2.70-GHz, 2MB L2 cache, 800-MHz FSB) X X
Intel Core 2 Duo Processors:
Intel Core 2 Duo E4600 Processor (2.40-GHz, 2 MB L2 cache, 800-MHz FSB) X X
Intel Core 2 Duo E6550 Processor (2.33-GHz, 4 MB L2 cache, 1333-MHz FSB) X X
Intel Core 2 Duo E6750 Processor (2.66-GHz, 4 MB L2 cache, 1333-MHz FSB) X X
Intel Core 2 Duo E7200 Processor (2.53-GHz, 3 MB L2 cache, 1066-MHz FSB) X X
Intel Core 2 Duo E7300 Processor (2.66-GHz, 3 MB L2 cache, 1066-MHz FSB) X X
Intel Core 2 Duo E7400 Processor (2.80-GHz, 3 MB L2 cache, 1066-MHz FSB) X X
Intel Core 2 Duo E7500 Processor (2.93-GHz, 3 MB L2 cache, 1066-MHz FSB) X X
Intel Core 2 Duo E8300 Processor (2.83-GHz, 6 MB L2 cache, 1333-MHz FSB) X X
Intel Core 2 Duo E8400 Processor (3.0-GHz, 6 MB L2 cache, 1333-MHz FSB) X X
Intel Core 2 Duo E8500 Processor (3.16-GHz, 6 MB L2 cache,1333-MHz FSB) X X
Intel Core 2 Duo E8600 Processor (3.33-GHz, 6 MB L2 Cache, 1333-MHz FSB) X X
Intel Core 2 Quad Processors:
Intel Core 2 Quad Q6700 Processor (2.66-GHz, 8 MB L2 cache, 1066-MHz FSB) X X
Intel Core 2 Quad Q8200 Processor (2.33-GHz, 4 MB L2 cache, 1333-MHz FSB) X X
Intel Core 2 Quad Q8300 Processor (2.50-GHz, 4 MB L2 cache, 1333-MHz FSB) X X
Intel Core 2 Quad Q9300 Processor (2.50-GHz, 6 MB L2 cache, 1333-MHz FSB) X X
Intel Core 2 Quad Q9400 Processor (2.66-GHz, 6 MB L2 cache, 1333-MHz FSB) X X
DDR2 is all you can use for memory, not sure the max on that system, wouldn't go higher than 8 (maybe only 4gb)
While it will take a PCIE graphics card, you are limited to a 'half height'(I believe your system is a SFF-Small Form Factor) card & by your PSU
It really is not worth putting to much money into.