You can substitute just about anything for "cake". It doesn't even have to be a food or drink.
Who's for cake?
Who's for tea?
Who's for chips?
Who's for badminton?
Who's for a movie and beer?
Who's for karaoke tonight?
It just means "Who would like to ...?" or "Who's in favour of ...?"