Hello Dido
In British English, "working on the farm" means "doing farm work", while "working at the farm" tells you where they're working.
I haven't heard "working in the farm", though.
MrP