No, you must apply for a UK Ancestry Visa from outside the UK. You cannot switch to this visa category from another type of visa while already in the UK.