Two ways:

Modify the firmware, changing it to set variable numSmartDrivers to 7 even when no DueX board is detected; or

Add a SX1509B chip to your add-on board wired with the same address select and fixed input that the DueX2 has. The firmware checks for the presence of the SX1509B and reads from it to determine what expansion board is present.