There's a lot of free software that helps you recover your data, something like Recuva perhaps. However after this I really think you should look into cloud storage. Store everything important on the cloud so that it's secure and accessible from anywhere.
I had the same problem as you, last year I lost all my data that was on my computer. I tried using some data recovery software, however it still didn't work, so bare in mind that it doesn't work 100% of the time. Let us know how it goes:)