You could use Key-Value Observation on the isResting property. See Is key-value observation (KVO) available in Swift?.
Or you could use the SCNPhysicsContact and SCNPhysicsContactDelegate to detect collisions with the floor, and use that to trigger a check for velocity.