Yes, you may definitely write-off property taxes paid on this property. However, this deduction is taken on Schedule A under property taxes paid.
Now, remember you can also deduct all expenses in connection to the sale of the 2nd home, these would include closing costs, commission expenses, transfer taxes, and fixing up expenses incurred prior to the sale of the home. Also, do not forget any repair expenses, painting and any major improvement expenses. These will collectively reduce your capital gains on the sale of the 2nd home. Hence, it will result in lower capital gains tax liability!
Please consult a tax professional to ensure that you have reasonably captured all these expenses