Unfortunately, the short answer is that you cannot - you need access to scan the contents of the file using javascript, which is not allowed. Worse, even if you somehow read the file, you will need to implement a whole set of codecs in JS to read the header information.
Mark this as impossible.
Basic source
share