Is one of the defining characteristics of any computer media file that it has a total play length tag embedded somewhere in its encoding? And if so, one that can be read by any machine?
It depends on the format. Some formats include a record for this (possibly at the beginning or at the end of the file). Which format(s) are you interested in?