That's a good idea!
I start a new presentation from a template. I can't store the template name in the template itself, but when a new presentation is started, the name is there, so that should work.
Or is setting a Customdocumentproperty maybe an even better idea? For instance I create TemplateName. I can set that already in the properties. If someone changes the template name it has no effect than.