|The short answer is no.|
The longer answer is it would require at a minimum a repair install of the transplanted operating system. The license key would probably also become an issue.
If you have install media for the HP then use it to do a clean install rather than trying to do a repair install of a cloned Dell.
If you do not have HP Install media then the question is moot anyway. When you first bought the HP were you not prompted to create the factory re-install disks?
Goin' Fishin' (Some day)