MacBook Pro (14-inch, M4, 2024) - Tech Specs - Apple Support
----------
Simultaneously supports full native resolution on the built-in display at 1 billion colors and:
- Up to two external displays with up to 6K resolution at 60Hz over Thunderbolt, or one external display with up to 6K resolution at 60Hz over Thunderbolt and one external display with up to 4K resolution at 144Hz over HDMI
- One external display supported at 8K resolution at 60Hz or one external display at 4K resolution at 240Hz over HDMI
----------
The specifications seem to indicate that if you connect a 240 Hz display, that comes at the cost of only being able to have one external display.
Likewise for MBPs with the M4 Pro chip. Even with a M4 Max chip, there's no promise of support for more than one 240 Hz display, though with a M4 Max chip, you could have a 60 Hz display or two in addition to the 240 Hz one.
MacBook Pro (14-inch, M4 Pro or M4 Max, 2024) - Tech Specs - Apple Support
There are no docks that can add hardware-accelerated video support beyond what is built into the MBP in question.