Should be easy enough to fit a hub motor to either wheel. Disk brakes not a problem. What gears and wheel size? If you haven’t seen it already, have a look at the Woosh range of hub motor kits (out of stock currently). That will give you a good idea of choices and weights. Someone on here fitted a front wheel conversion on their tandem.
Yes, we fitted a Woosh XF07 front just over 2 years ago to a more basic (Viking) tandem. No disk brakes, not sure if the wheel would take them; Woosh will clarify.
Ideally we would have had a more powerful motor, but were limited by what was available in 700c at the time. It has been a great boon and allows us to get up most hills with relative ease. Winchester area: no big hills but a few quite sharp sections of a couple of hundred metres. We usually ride at 2/5 assist setting or 3/5 on the hills. It definitely needs input from us especially on the steeper hills, we still use the lowest gear (somewhere around 25" ???, I can check if it will help). As we drop below around 6mph the motor struggles to help. Increasing to 4/5 or 5/5 makes us go much faster on the level and shallow hills, but once the speed has dropped the top power levels don't help that much (*). I think (???) it may be that the 13aH battery is not good at delivering the current needed, and of course motor efficiency drops at low speeds.
A lot has been said against front wheel motors and slipping. That does not apply on the tandem with the different weight distribution. In particular there is one mild slope of wet grass (almost mud) we regularly go up and fairly often the motor will continue to grip at the front while the back slips under pedal power. Two wheel drive is a boon there. (p.s. You probably shouldn't fit a significantly more powerful front motor without the extra complication of torque arms.)
Woosh were helpful in decision making before the sale (eg warning us of relative lack of XF07 power and checking geometry details for battery space), and supplied the kit with cables appropriately extended for the tandem. We had a few silly niggles at the very start; none the fault of Woosh and all quickly resolved with their help. Thoroughly recommended.
(*)
Our ebike motor simulator allows you to easily simulate the different performance characteristics of different ebike setups - with a wide selection of hub motors modeled, and the ability to add custom batteries and controllers and set a wide variety of vehicle parameters you'll be able to see...
www.ebikes.ca