You need to look at the LockType on the item. Consider doing something like this
SessionAwareCoreService2010Client client = new SessionAwareCoreService2010Client();
ComponentData data = (ComponentData)client.Read("tcm:300-85609", new ReadOptions());
FullVersionInfo info = (FullVersionInfo)data.VersionInfo;
The full version info contains all the info you need (i.e. CheckOutUser and LockType). LockType is an Enumeration defined by Tridion.ContentManager.Data.ContentManagement.LockType, and includes the following set of flags:
- None - The item is not locked.
- CheckedOut - The item is checked-out. This can mean either a temporary (edit) lock, a permanent lock (explicit check-out performed by user) or a workflow lock.
- Permanent - The item is permanently checked-out, that is using an explicit check-out action.
- NewItem - The item is a new item, that is it has been created, but not checked-in for the first time yet.
- InWorkflow - The item is in a workflow.