You can use an artificial vagina. What I did was collected sperm from female vagina after coitus. But this method produce variable results and you have to standardize the procedure.
You can use the epididymal or vas deferens tissues to obtain sperm from rats. Alternatively, electroejaculator with probe (7mm diameter) can successfully be used for semen collection undder anaesthesia.