Editing a theme’s templates

Where is theme located is a little tricky to answer in very general form:

  1. Themes are detected in the registered theme directories (which can be multiple folders).
  2. Typically there is at least one theme folder in site’s content folder (however content folder is also configurable).

However, for typical out of the box install this is simple enough with defaults of wp-content/themes inside the WordPress folder.