Just search in the forums or in google how to create resource files and add icons to it. Create a new resource file with Code::Blocks, add the lines you need and build it.
If all you need is an icon for the program, something like this will do:
APP_ICON ICON "path/to/your/icon.ico"
APP_ICON is just a name I made up.