It depends how they're drawn, in the UK at least the national lottos use a big ball tumbler thing and the balls fall down a hole at the bottom, sometimes they even get people to press the button to open the hole I think. In this instance I'd say it's impossible for anyone to write any algorithm to predict which balls would be picked short of simulating every atom and every single possible interaction between the machine and ... well, it's not going to be done.
If it's computer generated and uses a weak seed like... the date, then it would be possible to find the balls if you know the algorithm to generate the balls and essentially rewrote the ball picker, but I'd hope anyone with a brain writing something this important would factor in many variables that change all the time and no one outside of the computer would... 'easily' be able to get these, but who knows. I recall reading something about some ex-online casino coders that cheated the system as they knew the algo to the random picking in something, I wouldn't be surprised if this is something similar if they really did win this many times.