Use deviance() on a glm object

USAGE:

deviance.glm(object, ...) 

This is a method for the function deviance() for objects inheriting from class glm. See deviance or deviance.default for the general behavior of this function and for the interpretation of object.