You should rear a batch of pupae separately (or label each of them) and observe whether females or males emerged from each of them. Next, pupal cases should be well-examined to find out if there are any differences between the cases that belonged to females and males.