You know, theoretically it's possible, but I'd be VERY careful about it and really know what you're doing. Pretty sure those hard drives are formatted with linux. Also, the drive and formatter board are really a paired thing - If one goes down, you need the other. HP usually sends out the board and the hard drive together when making that kind of repair. If the drive is good, I guess you could just swap out a board. If the board is good and the drive is bad, then that's problematic unless there is an exact copy of the drive in every way.
If you can get a drive that's the same specs and format it with linux, then perhaps you could do it, I think.
One idea would be to get a replacement drive from eBay if a cheap one comes up, and experiment with doing clones.
Of course they normally come with the software preloaded.
Let us know what you do if anything.
Welcome to the forum.
Mark