You can read the settings by sending a $$ command to the controller. If you capture the output in a text file, you can then send this text file to the new controller the same way you do when sending a gCode file.
You can use the Arduino terminal window to do this. Most gCode senders can also do this by logging the output. Some even have a utility to backup and restore settings.