I don't see any way of testing which template file is being loaded, if the template file is not a page template. Otherwise I would use is_page_template().
For instance, I am using a home.php template file to pull in the content from multiple pages(don't ask), how would I check that home.php is the template file being used when viewing the sites root url?