Find sharepoint site by means of templateID
===

HI I was wondering if there is a way to determine in C# if a sharepoint site with a specified template exists. I do not wish to use the name of a website to find it. e.g list all the sites with templateID = 3. 