/proc/[procid]/fd/ will be full of symlinks to the target files or
devices, you could search that
Or you could try to figure out where android implements the "kill
anything with an open handle on the sdcard when it gets unmounted" for
an example, though it may be done in kernel rather than user code.