Of course Joshua knew Black's gender. As a warrior, how could he not know whether his horse was a male or a female? Although he has never felt such good spirit from a mare, the truth was that. God knows what the hell was going on.
But the most important question was whether the Black would still have a gender after it had awakened its bloodline.