They do a valuation on the end product, and then the bank lends on either the end value or the construction cost, whichever is the lower.
Most lenders will treat it as a purchase and lend up to 95%.
SO in this case the loan amount would be lets say 80% of $700 ($350 build, $350 land)...