Certified GKH Gardening Expert
Most modern figs are, both, male and female. You only have to worry about this with antique cultivars. You wouldn't be able to see the reproductive organs unless you open one of the flowers/fruit since the organs reside inside of it from start to finish. Then you could just look and see whether you have stamen or a pistil inside. Again, most these days will have both.
If you do happen to have one of the dioecious cultivars, then you will need another tree of the opposite sex, and the braconid wasps that pollinate them.
This article will help you to care for Fig trees: https://www.gardeningknowhow.com/edible/fruits/figs/how-to-grow-figs.htm