YOu cannot do what you are asking. Mach is a machine controller IT controls the step and direction outputs not you.
Your problem seems to stem from a VERY bad drive design. Redesign the drives to industry standards and your problem of overheating will go away.
You can certainly control the enable signals BUT nowhere near fast enough to use as a heating control mechanism. You would loose control of the output pulse stream and loose steps every time you tried to start movement.
Mach was not designed to correct BAD design flaws in drive controls.
Sorry, (;-) TP