Use Persistence.getDataSource(String storeName) method.
Or create a transaction using Persistence.createTransaction(String storeName), and obtain a Connection using Persistence.getEntityManager().getConnection(). It will be the connection to your specific database.