Accurately? You can't. Sorry to disappoint, but think about it: Take some 50 mixed sized files (some big, some small) and copy them from one folder on your computer to another using Windows Explorer. You will get a box which tells you the remaining time. Is it accurate? Does it change and go up? Or down? Or down, then up, then down again, then up a lot, then stop, then drop to "15 seconds remaining" for an hour and half?
Microsoft has been trying to get this right since about the eighties...there is even an XKCD cartoon that is relevant:
http://xkcd.com/612/[
^]
If they can';t get it right, what chance do you have? Do what we all do: guess and use fudge factors!