You don't determine it directly. But quick learning comes with other traits, like curiosity. You can determine those during a conversation if you're a good interviewer (which is the catch, interviewing is also a skill).
Sometimes you'll fail. But I've yet to see convincing proof that the alternative reduces failures (but it does reduce the willingness of people to admit failure).