Not exactly sure if this is possible as it depends on the relationships between your custom object and your users. In a custom formula field on your User object use the following code:
TEXT(CustomObject__r.CustomField__c)
Then your template can be changed into a User template and the merge fields would be the formula that actually pointed to your custom object instance.
To learn in-depth about Workflow in Salesforce, sign up for an industry based Salesforce training online.