I doubt it'll be an easy operation. The pots are most likely mounted on a pcb. So, to keep the rest intact, you'll have to carefully remove a part of the pcb (or at least kill some tracks), and somehow fit the encoders and a core and din module in there. After that you'd be looking at merging the two individual midi outputs...