Hi Rafiu!
Thanks for reaching Microsoft Community. We're here to help and let's work on this together.
With your query, yes, the Surface Dock 4 has two Mini DisplayPort ports that can be used to connect external monitors. You can use a Mini DisplayPort to DVI-D adapter to connect your Dell P2214H monitors to the Surface Dock 4. Alternatively, you can use a USB-C to DVI-D adapter to connect the monitors directly to the Surface 5. Please note that you will need to purchase the appropriate adapter separately.
Hope this helps!
Regards,
RodelioP.