Modify DPDT push button with an NPN to control with GPIO?
Not really feasible. Especially with the lack of design requirements, schematics and what you have tried so far. With that said I suggest that you desolder the DPDT switch and substitute the contact connections of a small DPDT relay. Use your GPIO to drive an NPN transistor that in turn drives the relay coil.