Check what CPUs this model was sold with when new. But even if you get "better" CPU, you might have troubles with cooling - most of these PCs are BTX style, with a CPU fan sideways on the end of a funnel.
And even if all is OK, you won't get 100% improvement.