The scalar cell volume is stored in the array VOL and is indexed by the cell index (typically IJK), so if you are in an IJK loop, the cell volume is VOL(IJK)
To access the array, make sure you have the following at the top of your UDF:
use geometry, only: vol