what intended use, what are your graphics power needs because with the original 180w power supply, you do not have much possibility And replacing the power supply box may be difficult or even impossible!
For the processor
Processor upgrade information
TDP: 65 W
Socket type: LGA1151
Motherboard supports the following processor upgrades:
Intel Core i5-8400 (2.8 GHz base frequency, up to 4 GHz with Intel Turbo Boost Technology, 9 MB cache, 6 cores)
Intel UHD Graphics 630
Intel Core i7-8700 (3.2 GHz base frequency, up to 4.6 GHz with Intel Turbo Boost Technology, 12 MB cache, 6 cores)
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".