Reference Template | Where is file stored in codebase?

Hello, when save a block as a reference template, where is the file actually stored in the codebase? I would like to edit the code if possible. Thanks