It depends on the distribution, most of them have a file /etc/<name>-release that has the distribution name and version inside. Others, like Slackware and Gentoo, do not use this file. Did you dowload the iso image (.iso file) from somewhere or you get the CD already burned? If you download the image it is more simple to tell me the site where you dowload it from.