Can I use my laptop ram, ssd and hdd in desktop motherboard?

Solution 1:

HDD: No problem.
SSD: Maybe, depends on if it is a NVMe SSD (not soldered onto the laptop motherboard) en if the new motherboard has a slot for that (most new motherboards do).

RAM: Most likely not. Laptops typically use so-called SO-DIMM ram while desktops use DIMM ram. Different form-factors. It won't physically fit even though the type of RAM (DDR-4) is the same.