As far as I know speed limit in Poland is 25km/h... better check before modification. There are few ways coming to my mind, but I don't support any changes making bikes illegal. I am sure others will help you if you decide to do it.
Changing battery is possible, but it is not straightforward...