Here is a quick tip if you need the Id and name of a site that you just saved as a site template.

To get Name of the existing site template(that you force need if you are making sites by site template programmatically) follow the not more than steps :

1. Save a Site as a Template.

2. Go to Site Actions > New Site > Custom.

3. IE Tools > Developer Tools > Find > Select Element By Click > View > Source > DOM (Element) > Highlight and copy the section
test . The one in bold will be your site template name.

To learn how to make a site by a site template programmatically see my post @

Programatically make Site from Site Template Sharepoint 2010

Check it out:SharePoint Programming