In the frontend, open Configuration | Templates and select Custom Templates in the Group drop-down menu. Mark the checkbox next to C_Template_Email and click on the Export button at the bottom. Your browser will offer to save a file called zbx_export_templates.xml; save it somewhere on your local machine.