Can I renew my passport at a consulate?
Yes. Thats one of the primary reasons that a consulate exists. However, that doesnt mean that they can renew your passport instantly, on-site. A consulate can usually provide you with a temporary passport fairly quickly, or a regular passport within a week or two. There are several variables here, so YMMV.