Hey christiang69,
When you first downloaded UE4, you downloaded a .msi file that installed the launcher. I would transfer that, and your Unreal Engine files (from C:\Program Files\Unreal Engine, and from C:\Users\UserNameHere\Documents\Unreal Projects), onto an external drive. Then you can format your PC and transfer those files back over from your external drive.
Regards,
Jonathan