Depending on how important the data is to you (as it will void your warranty)
Follow step 1 and step 2 of the guide linked below. If your computer doesn’t detect the hard drive when you hook it up directly to a sata port, you will be at the mercy of a data recovery service which can be quite expensive.