You can't.
I would generally recommend keeping a mapping in your own database of file IDs to whatever custom metadata you want. It might help if you explain your scenario a bit more.