Non-destructive detection and generation of the Werner state via a dissipative process