Firat an aside: what you have is one 'String' (textual) representation of a publickey, specifically the base64 encoding of an ASN.1 structure SubjectPublicKeyInfo defined in X.509 and PKIX, and used by default in Java crypto as noted in the doc for X509EncodedKeySpec but explained more fully in Key. There are many other 'string' representations of publickeys which are quite different, and not so easily usable in Java.
Java actually has classes for this and related structures -- and uses them when processing an X.509 certificate which includes SPKI -- but they are internal and undocumented, and while in years past it was possible to just call internal classes Java (Oracle) is now on a massive effort to progressively make this more difficult or impossible, so I can't recommend it.
If you can use third-party code specifically BouncyCastle it is easy. The closest way to what you asked for is to parse the SPKI and get the algorithm 'name' from it -- but this is in the form of an ASN.1 Object Identifier aka OID, not the name Java normally uses. If you use the BouncyCastle provider (bcprov*.jar) for the KeyFactory call, it has an alias mapping for this OID to the normal name:
String stringPubKey = "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEmRk7MSZQCX2u4UIQgVzma1JEo3yASVafls/5nw/V9T6e5EbsK64MM0KhsPH9aK/aElRt1+Rxtd1AsHVvsQJjKw==";
byte[] publicBytes = Base64.getDecoder().decode(stringPubKey);
String oid = org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getInstance(publicBytes)
.getAlgorithm().getAlgorithm().toString(); /* yes, two different .getAlgorithm() ! */
PublicKey pk = KeyFactory.getInstance(oid, new org.bouncycastle.jce.provider.BouncyCastleProvider())
.generatePublic(new X509EncodedKeySpec(publicBytes));
System.out.println(oid + " -> " + pk.getAlgorithm());
However, if you use the bcpkix*.jar library (which depends on bcprov being available but not necessarily registered) it handles the OID-name mapping with any provider (like the normal SunEC) and manages the KeyFactory for you in one step:
// setup as above
/*PublicKey*/ pk = new org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter().getPublicKey(
org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getInstance(publicBytes));
System.out.println(pk.getAlgorithm());