You can`t predict the compression size. The only chance I see is to try this:
7z a -t7z -mx9 -o f:\outputDirectory e:\inputDirectory
try this. Compress all the files, and just wait if its finishes or abort due to the lack of spacespaaace.
Note that 7z.exe needs to be in your pathpath for this command. Alternativly you can specify the full path to the 7z.exe
C:\Programs\7-Zip\7z a -t7z -mx9 -o f:\outputDirectory e:\inputDirectory