A friend of mine had a retrofit done in his E46 some years ago. It is quite involved (or was for E46). Off the top of my head it involved...
Removing all the seats
Installing new wiring loom
Installing a unit in the boot
Changing over the unit
So I'm pretty sure it will be possible.
F10 M5 Competition White / Sakhir Orange
Loaded, Akra carbon titanium exhaust, Carbon trim, Carbon spoiler, RKP carbon front lip + diffusor.
F31 330d M Sport (Alpine White / Red)
Loaded, 405M 20", M perf: skirts, brakes red.