Physically you can if they are both 9.5mm in height (and they should be). Your biggest barrier will be having to deal with Microsoft since each license is assigned to that laptop from the factory (unless you bought your own OEM copies of Win10 for each with which you are free to move them around wherever). Do you have reinstall disks from the factory for each or do you have your own OEM copies for each?
Just bear in mind you will have to go through a lot of driver updates and changes if you do a simple swap. I would just back up each drive, wipe them out with a reformat, and reinstall the swapped drives with each original Win10 license. You will not only not have to deal with MS if the software was installed at the factory. but not...