A typical electric jug element is around 2.4 kW, at least where I am. That is 10 Amps from a 240V outlet. So given that the heater itself is 100% efficient, how big a model engine will that power? Well, IMLEC tells us that model locos achieve an overall efficiency of around 2% at best. Granted, some of the losses are up the chimney and from the outside of the boiler shell, so an electric boiler should do a bit better…but even if we get optimistic and assume that we can get 10% efficiency from our electric version, we are only going to get 240 Watts out of the engine. That's about 1/3 of a horsepower, which suggests to me that such an electric boiler might run something like a Stuart Number 1 OK, but would struggle with anything bigger.
You might think that since (almost) all the heat from the input ends up in the steam that the whole 2.4 kW should be available at the steam engine. Actually this is not the case. Even if the engine was an ideal heat engine using the Carnot cycle, the maximum efficiency would be 11- (Tcold/Thot), multiplied by 100 to express as a percent. With steam at 100 psig, the Thot temperature will be close enough 10 170 degrees, C and exhausting steam to atmosphere means that the Tcold temperature will be 100 degrees C or maybe even a little more. This gives a maximum efficiency of 16 %….for an ideal Carnot cycle heat engine operating between the temperatures that are practical for a model plant. Actually the Rankine cycle that we use is not an ideal Carnot cycle, since for a start all of the latent heat is thrown away, so we will never see a figure as high as 16% at IMLEC. (Absolute temperatures must be used forthe formulae, eg add 273 degrees to the Celsius figure)
We can improve the efficiency in two simple ways. One is to lower the cold temperature and the other is to raise the hot temperature. A condenser would enable us to get the cold end down to about 25 degrees, say 300 K close enough. Raising the pressure would also raise the hot end temperature, but most model plant is not allowed to go over 100 psig, unless you go to a flash steam boiler. The remaining approach is to superheat the steam, the limit here being what the materials and lubricant will stand.
So the tl:dr version…an electric boiler run from the mains will probably serve quite well for trying out typical Stuart size model; engines. Not really practical with a battery for a locomotive.