Have a look at http://confluence.jetbrains.com/display/TCD8/Free+disk+space - The Free disk space build feature allows ensuring the build gets enough disk free space.
Property that can be used as an agent requirement: teamcity.agent.work.dir.freeSpaceMb