You are looking for the dumpwallet command.
While in regtest open the console a/k/a debug window, and type:
This will create a text file with all your keys. At the top you will see your extended master private key. And if you are looking for your HD seed, do a control+f for hdseed, you should find a key with the label ...