You can ask the midwife as they usually do an urine test every time you speak to them and it should show signs of uti. It doesn’t always have symptoms in pregnancy, but can be dangerous so anytime you have one it is best to test and get antibiotics that are suitable for it.
They wouldn’t prescribe something without testing and finding something
They’ll do a urine test to check for infection and then prescribe if anything’s wrong x