Mesoscopic scale description of nucleation processes in glasses