You will have to analyze the data on the disk manually, i.e. by reading the raw disk content and looking for files which are marked as deleted.
A good start would be reading into the internals of the filesystem(s) you want to support since you will need them. There is no API for that.