As mentioned by others, there is commercial software that can manage this. Acronis (which I do not use) supposedly works. The two I frequently use are EaseUS Todo Backup (Workstation Edition) and PCMover from Laplink.
To use the EaseUS product, you need to be able to create a backup from the old machine. If it's not running anymore, that option is off the table. However, if you can create a backup of the SSD drive (for example, onto an external drive), then it can be restored to completely different hardware using "System Transfer" mode.
The Laplink solution has two scenarios, depending on whether your original PC is functioning or not. In the case where it's functioning, use PC Mover Professional to move some or all of your applications and data from the old computer to the new one, without overwriting the existing files or operating system on the new computer. If your original computer doesn't work, you can simply connect the SSD drive from the old computer to the new one (with a connection cable or sled) and use PC Mover Drive & Image Assistant to move the programs and data from the SSD to the new computer.
The Laplink options assume your new computer already has the same or newer version of Windows installed on it as the old computer. If your new computer didn't come with a Windows license, and the old computer will not run long enough to create a backup with EaseUS Todo Backup (Workstation Edition), then neither option will work.
How do I move an old SSD to a new PC without reinstalling Windows 10 and apps?
Hi everyone, 10 years ago I built a very high end liquid cooled desktop and was very pleased with it. Unfortunately, all good things come to an end and the poor computer decided its components could no longer take the beating. I’m starting my next build and would like to know if there are methods to use my existing SSD drive in the new computer so I don’t have to reinstall Windows 10 (64-bit) and all the applications I currently use. Reinstalling the OS and all of my software will take weeks and not something I want to spend my time on. Any and all advice would be appreciated. Thanks in advance.
--Submitted by Dennis M. (aka mrozde)
Update 5/20/2019: Latest update from Dennis (mrozde) on how he resolved this: https://www.cnet.com/forums/post/6ee5efc2-3613-4751-a9f8-6069a33afe6b/

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic