Measuring the dark matter velocity anisotropy in galaxy clusters