I have before. Replacing a hard drive on a laptop pretty easy.
On underside of laptop you will find an access panel. Remove. The hard drive will also be held in by screws or a bracket. Remove these also. The drive should pop out now.
When I did mine, I found all the specs I needed to replace with same type on the drive itself. I used these to shop for a newer one. If you are looking to upgrade to a newer SATA drive that is usually doable using an adapter that should come with new drive.
Simply reverse process installing new drive.
Note: When doing this keep in mind you are dealing with sensitive electronics. Make sure you keep yourself properly grounded so you don't zap something while working.
Before you started, you should have made a copy to disc of your operating system and any backups you needed. Or you may have a newer OS on hand. You will need to reinstall everything.
I'm not an expert at this but I once had to do out of necessity to save a laptop. This was done on an HP. It was pretty easy.