Catalysis of the reaction: UDP-N,N'-diacetylbacillosamine + H2O <=> 2,4-diacetamido-2,4,6-trideoxy-alpha-D-mannopyranose + UDP + H+