Unless you know the headcode of the train, the only way to make a reasonable guess is by the length of the train - and that's clearly not 'foolproof'. Though I suppose you'd also be able to work it out by the time between passing Barnetby on the down and passing on the way back up!
Good...