Your answer is yes/no.
Although you can verify whether a credit card number is legitimate via an algorithm called the
Luhn Algorithm, you can't check it against a name.
The name for a credit card isn't a verifiable piece of information through anything except the issuers private records.
Sooo, short of getting access to the bank's database you have no programmatic way to check names.
BUT. You can actually figure out the issuing bank via the first numbers somewhat reliably. Check the hyperlink.
- 4 for Visa cards
- 5 for Master cards
- 37 for American Express cards
That's about as much as I know, the algorithm is REALLY simple to write.
One more thing.
If you wanted to get all hackerish w/it
you could look for some data exposure in popular banking sites. Some sort of form or backend script that allows you to query card information.
That'd be REALLY cool.