http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler#Compiler-neutral_setup_steps (http://wiki.codeblocks.org/index.php/Installing_a_supported_compiler#Compiler-neutral_setup_steps)
go to "Settings->Compiler and Debugger->Global Compiler settings->Toolchain executables"
or
go to "Settings->Compiler->Global Compiler settings->Toolchain executables"
Look at the path for "Compiler Installation Directory"; the compiler is in a bin folder under that location.
My "Compiler Installation Directory" is "C:\Apps32\MinGW-4.7.1-save".
cd C:\Apps32\MinGW-4.7.1-save
C:\Apps32\MinGW-4.7.1-save>cd bin
C:\Apps32\MinGW-4.7.1-save\bin>mingw32-gcc.exe --version
mingw32-gcc.exe (tdm-1) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Tim S.