Can I get my driving licence in the UK ?
Your first problem is that to get a UK driving licence you need a Uk place of residents or at least an address that the licence can be used on the licence and where the licence can be sent to. Next have you got the capability to learn to drive and get a date for a test and pass it a relatively short space of time. Will the Spanish authority’s accept you new licence if they do you will have to have it notorised by Trafico at your expense which takes several weeks as Trafico contact the UK DVLA to validate your licence although, as you appear to be resident in Spain you should really exchange your licence if you get one for a Spanish licence, to do that you will be required to pass the medical that all Spanish drivers have to take, hearing, sight and hand eye co-ordination tests.