If the fan headers are 4-pin, you should be able to. But look at the wiring pinouts and you may need to rearrange the pins on your replacements to match the HP pinout. If they're a 5-pin or other header, then I wouldn't try it unless you want to rewire them.
Like