This post describes the list of sharepoint templates and template id present. we can use the powershell command to get sharepoint templates list in sharepoint 2016.
sharepoint site templates
We can get all webs and site templates under site collection by using the a small script. Read full article to know in details.