Tis can be achieved by comparing the exergy provided to a process with the exergy available after the process has been performed.
The amount of exergy withdrawn from a process should equal the useful work extracted from this process.