There are a few programs out there that can do this task. A favorite here is Macrium reflect which is available in a free version also and it seems to do a good job. Another one is (my favorite) Acronis true image, which is not free, however if one or more of your SSD/HDD is Western digital or SanDisk, you can download True image for free at the WD website.