Is there a way to tell a male yak from a female yak?

Yes. Male yaks have testes between their legs whereas female yaks have an udder. They (the females) also have a vulva below the anus which is underneath the tail. It's no different from domestic cattle, except there's a lot more hair to go through to see which is which.