<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def get_engaged_axes(request):
 """ Query driver for engaged state by axis. Response keys will be axes XYZABC and keys will be True for engaged and False for disengaged. Axes must be manually disengaged, and are automatically re-engaged whenever a "move" or "home" command is called on that axis. Response shape example: """

    hw = hw_from_req(request)
    return web.json_response(
        {str(k).lower(): {'enabled': v}
         for k, v in hw.engaged_axes.items()})