

With low frequencies, where it is hard to locate the source of the sound anyways, it works well, even without carefully arranging the distances, higher frequencies get trickier and you’ll likely get good cancellation in some places and a terrible mushy noise in others.
High pitch noise like from hard drives, typically in the 5 to 15k hz frequencies generally can be dampened quite a bit with pretty simple solutions like accoustic foam. Since it’s probably not that loud you won’t need much material to achieve a bit of reduction. Only thing I’d worry about is temperature management, keep an eye on it. Afaik there are also special desktop PC cases that are insulated, for like sound studios and such.