In that case, you probably use RC2 (it helps to always tell exactly what version you are using). RC2 stores its configuration in the registry (hkey_local_machine/software/codeblocks if I am not mistaken).
You can use Regedit to export the complete CodeBlocks key with all its children to a .reg file. Alternatively, RC2 allows import and export of configurations (somewhere in the Settings menu).
Please do note, however, that you will not be able to import your settings into more recent versions, as they use a completely different system than RC2 does.