There is a way to tell. For one thing many of the hasid rabbinical familes can trace back to someone who was in David's clan. But that really doesn't matter. The messiah who fulfills all of the other prophecies will obviosuly be of Davids tribe. That's how we'll know eventualy.