Laptops usually are quiet. They are designed that way, however with the quiet comes the tradeoff of heating up faster.
Desktops can be made quiet. "Quiet" fans, "quiet" CPU coolers, etc. Some hard drives are noisy and nothing you can do about that except replace it with a quieter one.
My current desktop (built a year ago) is "dead quiet". I used a "BeQuiet" case that has quiet case fans. Using the on-board Intel CPU video so no separate video card with fans. SSD for OS and Sonar. Quiet liquid CPU cooler. There is one mechanical hard drive but it is quiet. I can record with an SM58 sitting beside the tower and there is no PC noise heard in the recordings.