That depends far more on the capability of your MotherBoard
and it's soldered in place chipset than anything else.
It's likely you could upgrade to another "Prescott" based Pentium 4 chip
but which one is again dependent on your MoBo and it's chipset.
But it's likely you'd be better off getting a more capable motherboard.
Any idea who actually makes your motherboard?
Do you know if it uses a Socket 478 or Socket 775 type chip?
How much "upgrade" do you need (what do you actually do?)
You are already running a faster processor than I am... I'm still running a P4-2.40GHz
while your Celeron D 345 is a 3.06GHz...
It might be easier and more practical to upgrade your chip AND Mother board
if you are really looking for better performance.