You can recover accidentally deleted partition and stored files, but recovery of installed programs might not be possible if you've formatted the Windows partition i.e., C: drive.
Download & Install software on your PC. Run
the program from desktop screen.
Under 'drive recovery' tab, an option listed entitled 'Search for Lost or Deleted volumes'. The software will begin scanning drive for lost or deleted volumes and later allows you to perform recovery from the same.
Let me know how it goes or post back if you need any more help!!