No, you can only apply for an extension of stay under the Tier 4 Doctorate Extension Scheme from within the UK.