Here is the result for M122:
M122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 2.0(RTOS) running on Duet Ethernet 1.02 or later
Board ID: 08DGM-9T6BU-FG3S0-7JTDD-3SD6Q-1V5MF
Used output buffers: 1 of 20 (6 max)
=== RTOS ===
Static ram: 28380
Dynamic ram: 95724 of which 0 recycled
Exception stack ram used: 284
Never used ram: 6684
Task NETWORK ready, free stack 396
Task HEAT blocked, free stack 1256
Task MAIN running, free stack 3568