how do you determine the theoretical yield?

By stoichiometry. When you are given a quantity of starting material and you calculate the amount of product you should get, that amount is the theoretical yield.