Your personal data? Sure.
The OS and applications? No.
The OS is almost certainly OEM, installed by HP. And as such is licensed to that particular motherboard.
Even if that was not the case, you can't port a Windows install from a laptop to a new desktop. It will almost certainly not boot. Hardware is too different.