Forget it. Store bought HP computers do not generally come with aftermarket cooling solutions= and if they do they don't ship the necessary accessories for you to change socket types.
Since you are buying a new CPU, it will come with a cooler that works with it.