There are no locks in the firmware to prevent this. Swapping the hard drive is actually easier than replacing the battery which is also pretty easy in every iPod bar the mini.
You need to run iPod upadater after you install the new drive & it will sort out the partitioning of your new drive