If you have previously compiled a kernel you may find the .config located at /usr/src/the_kernel_version that's where the .config is located in Gentoo at least. If you only have the kernel image that someone else compiled I think its a bit more involved to try and extract the config information.