Wouldn't it be called libwsock32.a?
Open the Code::Blocks project file in Code::Blocks. Go to Project->Build Options and select the target (should be Release and Debug). Under "Linker Settings" add "wsock32" without any extension. This should link to libwsock32.a