http://www.powerdog.com/tiresize.cgi
Tire size results
Specification Sidewall Radius Diameter Circumference Revolutions Speedometer Odometer Difference
225/45-17 4.0" 12.5" 25.0" 78.5" 808/mi 60MPH 10000mi N/A
245/40-17 3.9" 12.4" 24.7" 77.6" 816/mi 61MPH 10104mi -1.0%
Almost the same size tire.
2 cm wider...Not a biggie.
You want a narrow tire for the winter anyway.
Also do you know what the factory tire sizes are for your year/model BMW.
Could be that the previous owner went for a slightly wider tire in the back in the aftermarket.
Good luck!